package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SysCommonObjectPropertyMapper;
import com.ruoyi.system.domain.SysCommonObjectProperty;
import com.ruoyi.system.service.ISysCommonObjectPropertyService;

/**
 * 公共关联字段Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-08-09
 */
@Service
public class SysCommonObjectPropertyServiceImpl implements ISysCommonObjectPropertyService 
{
    @Autowired
    private SysCommonObjectPropertyMapper sysCommonObjectPropertyMapper;

    /**
     * 查询公共关联字段
     * 
     * @param id 公共关联字段主键
     * @return 公共关联字段
     */
    @Override
    public SysCommonObjectProperty selectSysCommonObjectPropertyById(Long id)
    {
        return sysCommonObjectPropertyMapper.selectSysCommonObjectPropertyById(id);
    }

    /**
     * 查询公共关联字段列表
     * 
     * @param sysCommonObjectProperty 公共关联字段
     * @return 公共关联字段
     */
    @Override
    public List<SysCommonObjectProperty> selectSysCommonObjectPropertyList(SysCommonObjectProperty sysCommonObjectProperty)
    {
        return sysCommonObjectPropertyMapper.selectSysCommonObjectPropertyList(sysCommonObjectProperty);
    }

    /**
     * 新增公共关联字段
     * 
     * @param sysCommonObjectProperty 公共关联字段
     * @return 结果
     */
    @Override
    public int insertSysCommonObjectProperty(SysCommonObjectProperty sysCommonObjectProperty)
    {
        return sysCommonObjectPropertyMapper.insertSysCommonObjectProperty(sysCommonObjectProperty);
    }

    /**
     * 修改公共关联字段
     * 
     * @param sysCommonObjectProperty 公共关联字段
     * @return 结果
     */
    @Override
    public int updateSysCommonObjectProperty(SysCommonObjectProperty sysCommonObjectProperty)
    {
        return sysCommonObjectPropertyMapper.updateSysCommonObjectProperty(sysCommonObjectProperty);
    }

    /**
     * 批量删除公共关联字段
     * 
     * @param ids 需要删除的公共关联字段主键
     * @return 结果
     */
    @Override
    public int deleteSysCommonObjectPropertyByIds(Long[] ids)
    {
        return sysCommonObjectPropertyMapper.deleteSysCommonObjectPropertyByIds(ids);
    }

    /**
     * 删除公共关联字段信息
     * 
     * @param id 公共关联字段主键
     * @return 结果
     */
    @Override
    public int deleteSysCommonObjectPropertyById(Long id)
    {
        return sysCommonObjectPropertyMapper.deleteSysCommonObjectPropertyById(id);
    }
}
